package com.mall.order.dto;


import com.mall.commons.result.AbstractRequest;
import com.mall.commons.tool.exception.ValidateException;
import com.mall.order.constant.OrderRetCode;
import lombok.Data;

/**
 * @author: lsy
 * @class: PayOrderSuccessRequest
 */
@Data
public class PayOrderSuccessRequest extends AbstractRequest {

    String orderId;

    @Override
    public void requestCheck() {
        if (orderId == null) {
            throw new ValidateException(OrderRetCode.REQUISITE_PARAMETER_NOT_EXIST.getCode(), OrderRetCode.REQUISITE_PARAMETER_NOT_EXIST.getMessage());
        }
    }
}
